import React from 'react';

import { Link } from "react-router-dom";

export default class App extends React.Component {

    constructor(props) {
        super(props);
    }

    render() {
        return (
            <div>
                <nav>
                    <ul>
                        <li>
                            <Link to="/about/">页面一</Link>
                        </li>
                        <li>
                            <Link to="/users/">页面二</Link>
                        </li>
                    </ul>
                </nav>
            </div>);
    }
}


function aaa(props)
{
    var name=props.name;
}

function bbb({name})
{

}

var person={
    name:'小王',
    sex:1
}


aaa(person)
bbb(person)